<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>pyswap: swap::SwapMote::SwapMote Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="panStamp_web.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pyswap
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>swap</b>      </li>
      <li class="navelem"><b>SwapMote</b>      </li>
      <li class="navelem"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html">SwapMote</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">swap::SwapMote::SwapMote Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="swap::SwapMote::SwapMote" -->
<p>SWAP mote class.  
 <a href="classswap_1_1SwapMote_1_1SwapMote.html#details">More...</a></p>

<p><a href="classswap_1_1SwapMote_1_1SwapMote-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a4275b7f23608171847cc4e89f84d475c">cmdRegister</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send command to register and return expected response.  <a href="#a4275b7f23608171847cc4e89f84d475c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a0cef21e536fe864e8377c425caad51fc">qryRegister</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send query to register.  <a href="#a0cef21e536fe864e8377c425caad51fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a398c0a7161eb82b8a2db1ae4c692bd65">staRegister</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send SWAP status packet about the current value of the register passed as argument.  <a href="#a398c0a7161eb82b8a2db1ae4c692bd65"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#aa09f86b3a7cd99df0487fe9d3cc0cdb6">cmdRegisterWack</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send SWAP command to remote register and wait for confirmation.  <a href="#aa09f86b3a7cd99df0487fe9d3cc0cdb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#ab72e80c2474d0727fbe208c5c6a4aed7">setAddress</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set mote address.  <a href="#ab72e80c2474d0727fbe208c5c6a4aed7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a153645220eb359a43004ec1f3df3b874">setNetworkId</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set mote's network id.  <a href="#a153645220eb359a43004ec1f3df3b874"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a8597f70f98ba1edaf106a0c5a8a84f3d">setFreqChannel</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set mote's frequency channel.  <a href="#a8597f70f98ba1edaf106a0c5a8a84f3d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a6d9f8635ffcd55f825d7c0a49109acd1">setSecurity</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set mote's security option.  <a href="#a6d9f8635ffcd55f825d7c0a49109acd1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#ac4ff2cae3958d5b61de7ae62cf9f4d8d">setTxInterval</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set periodic Tx interval.  <a href="#ac4ff2cae3958d5b61de7ae62cf9f4d8d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a2629421c34a6e1d28317b8fd74aa7665">restart</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ask mote to restart.  <a href="#a2629421c34a6e1d28317b8fd74aa7665"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a8b77dd4dd93fe01a111ffb441af51544">leaveSync</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ask mote to leave SYNC mode (RXON state)  <a href="#a8b77dd4dd93fe01a111ffb441af51544"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a640b41040def8e6c5b6aa64d8cd15857"></a><!-- doxytag: member="swap::SwapMote::SwapMote::updateTimeStamp" ref="a640b41040def8e6c5b6aa64d8cd15857" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a640b41040def8e6c5b6aa64d8cd15857">updateTimeStamp</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Update time stamp. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a36cb417a85fc92cf92efe982b369fd37">getRegister</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get register given its ID.  <a href="#a36cb417a85fc92cf92efe982b369fd37"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a0ff02bd16d7ab83292cd1e7adb68b4c7">getParameter</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get parameter given its name.  <a href="#a0ff02bd16d7ab83292cd1e7adb68b4c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a782795397c31d5fb69d766f0536debd7">__init__</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Class constructor.  <a href="#a782795397c31d5fb69d766f0536debd7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c08682596f2b7e482ce303be6537c7d"></a><!-- doxytag: member="swap::SwapMote::SwapMote::timeStamp" ref="a0c08682596f2b7e482ce303be6537c7d" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a0c08682596f2b7e482ce303be6537c7d">timeStamp</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Time stamp of the last update received from mote. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a744e2fdf89b1c73984d9c0390d108c65"></a><!-- doxytag: member="swap::SwapMote::SwapMote::server" ref="a744e2fdf89b1c73984d9c0390d108c65" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a744e2fdf89b1c73984d9c0390d108c65">server</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swap server object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b32bd091a3a51f8eb73df06db77ba26"></a><!-- doxytag: member="swap::SwapMote::SwapMote::productId" ref="a8b32bd091a3a51f8eb73df06db77ba26" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a8b32bd091a3a51f8eb73df06db77ba26">productId</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Product ID. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a032db40da3da67dc75e4aef0e953feb8"></a><!-- doxytag: member="swap::SwapMote::SwapMote::manufacturerId" ref="a032db40da3da67dc75e4aef0e953feb8" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a032db40da3da67dc75e4aef0e953feb8">manufacturerId</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Manufacturer ID. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa6311c1be26817fbce25c41fe813cf77"></a><!-- doxytag: member="swap::SwapMote::SwapMote::config" ref="aa6311c1be26817fbce25c41fe813cf77" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#aa6311c1be26817fbce25c41fe813cf77">config</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Definition settings. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb1ec80037bdf872a33d0d3959fadac6"></a><!-- doxytag: member="swap::SwapMote::SwapMote::definition" ref="acb1ec80037bdf872a33d0d3959fadac6" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#acb1ec80037bdf872a33d0d3959fadac6">definition</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Definition settings. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad3dcc37e7d2ced9dc01cb73bfc9c1ba3"></a><!-- doxytag: member="swap::SwapMote::SwapMote::address" ref="ad3dcc37e7d2ced9dc01cb73bfc9c1ba3" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#ad3dcc37e7d2ced9dc01cb73bfc9c1ba3">address</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Device address. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a022cfac3bf9b44d380a5706046fcd0e7"></a><!-- doxytag: member="swap::SwapMote::SwapMote::nonce" ref="a022cfac3bf9b44d380a5706046fcd0e7" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a022cfac3bf9b44d380a5706046fcd0e7">nonce</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Current mote's security nonce. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49e38e904cc83c197d54cdb0089b738f"></a><!-- doxytag: member="swap::SwapMote::SwapMote::state" ref="a49e38e904cc83c197d54cdb0089b738f" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a49e38e904cc83c197d54cdb0089b738f">state</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">State of the mote. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e552dfed0be54e00b4fafd61fb70fff"></a><!-- doxytag: member="swap::SwapMote::SwapMote::lstRegRegs" ref="a1e552dfed0be54e00b4fafd61fb70fff" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a1e552dfed0be54e00b4fafd61fb70fff">lstRegRegs</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of regular registers provided by this mote. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53660947fbd44a7deeb70a67b801f88b"></a><!-- doxytag: member="swap::SwapMote::SwapMote::lstCfgRegs" ref="a53660947fbd44a7deeb70a67b801f88b" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a53660947fbd44a7deeb70a67b801f88b">lstCfgRegs</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of config registers provided by this mote. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c2f74fc08b5cbd0c0016754d0ef16cc"></a><!-- doxytag: member="swap::SwapMote::SwapMote::pwrdownmode" ref="a4c2f74fc08b5cbd0c0016754d0ef16cc" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#a4c2f74fc08b5cbd0c0016754d0ef16cc">pwrdownmode</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Powerdown mode. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adcf939a773d87b1dd2393fe57ee95aee"></a><!-- doxytag: member="swap::SwapMote::SwapMote::txinterval" ref="adcf939a773d87b1dd2393fe57ee95aee" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classswap_1_1SwapMote_1_1SwapMote.html#adcf939a773d87b1dd2393fe57ee95aee">txinterval</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Interval between periodic transmissions. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>SWAP mote class. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a782795397c31d5fb69d766f0536debd7"></a><!-- doxytag: member="swap::SwapMote::SwapMote::__init__" ref="a782795397c31d5fb69d766f0536debd7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>server</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>productCode</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>address</em> = <code>0xFF</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Class constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">server,:</td><td>SWAP server object </td></tr>
    <tr><td class="paramname">productCode,:</td><td>Product Code </td></tr>
    <tr><td class="paramname">address,:</td><td>Mote address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4275b7f23608171847cc4e89f84d475c"></a><!-- doxytag: member="swap::SwapMote::SwapMote::cmdRegister" ref="a4275b7f23608171847cc4e89f84d475c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::cmdRegister </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>regId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Send command to register and return expected response. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">regId,:</td><td>Register ID </td></tr>
    <tr><td class="paramname">value,:</td><td>New value</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Expected SWAP status packet sent from mote after reception of this command </dd></dl>

</div>
</div>
<a class="anchor" id="aa09f86b3a7cd99df0487fe9d3cc0cdb6"></a><!-- doxytag: member="swap::SwapMote::SwapMote::cmdRegisterWack" ref="aa09f86b3a7cd99df0487fe9d3cc0cdb6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::cmdRegisterWack </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>regId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Send SWAP command to remote register and wait for confirmation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">regId,:</td><td>Register ID </td></tr>
    <tr><td class="paramname">value,:</td><td>New value</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if ACK is received from mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a0ff02bd16d7ab83292cd1e7adb68b4c7"></a><!-- doxytag: member="swap::SwapMote::SwapMote::getParameter" ref="a0ff02bd16d7ab83292cd1e7adb68b4c7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::getParameter </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get parameter given its name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name,:</td><td>name of the parameter belonging to this mote</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>: SwapParam object </dd></dl>

</div>
</div>
<a class="anchor" id="a36cb417a85fc92cf92efe982b369fd37"></a><!-- doxytag: member="swap::SwapMote::SwapMote::getRegister" ref="a36cb417a85fc92cf92efe982b369fd37" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::getRegister </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>regId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get register given its ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">regId,:</td><td>Register ID</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>SwapRegister object </dd></dl>

</div>
</div>
<a class="anchor" id="a8b77dd4dd93fe01a111ffb441af51544"></a><!-- doxytag: member="swap::SwapMote::SwapMote::leaveSync" ref="a8b77dd4dd93fe01a111ffb441af51544" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::leaveSync </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ask mote to leave SYNC mode (RXON state) </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a0cef21e536fe864e8377c425caad51fc"></a><!-- doxytag: member="swap::SwapMote::SwapMote::qryRegister" ref="a0cef21e536fe864e8377c425caad51fc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::qryRegister </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>regId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Send query to register. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">regId,:</td><td>Register ID </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2629421c34a6e1d28317b8fd74aa7665"></a><!-- doxytag: member="swap::SwapMote::SwapMote::restart" ref="a2629421c34a6e1d28317b8fd74aa7665" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::restart </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ask mote to restart. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ab72e80c2474d0727fbe208c5c6a4aed7"></a><!-- doxytag: member="swap::SwapMote::SwapMote::setAddress" ref="ab72e80c2474d0727fbe208c5c6a4aed7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::setAddress </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set mote address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">address,:</td><td>New mote address</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a8597f70f98ba1edaf106a0c5a8a84f3d"></a><!-- doxytag: member="swap::SwapMote::SwapMote::setFreqChannel" ref="a8597f70f98ba1edaf106a0c5a8a84f3d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::setFreqChannel </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set mote's frequency channel. </p>
<p>Return true if ACK received from mote</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">channel,:</td><td>New frequency channel</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a153645220eb359a43004ec1f3df3b874"></a><!-- doxytag: member="swap::SwapMote::SwapMote::setNetworkId" ref="a153645220eb359a43004ec1f3df3b874" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::setNetworkId </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>netId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set mote's network id. </p>
<p>Return true if ACK received from mote</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">netId,:</td><td>New Network ID</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a6d9f8635ffcd55f825d7c0a49109acd1"></a><!-- doxytag: member="swap::SwapMote::SwapMote::setSecurity" ref="a6d9f8635ffcd55f825d7c0a49109acd1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::setSecurity </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>secu</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set mote's security option. </p>
<p>Return true if ACK received from mote</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">secu,:</td><td>Security option</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ac4ff2cae3958d5b61de7ae62cf9f4d8d"></a><!-- doxytag: member="swap::SwapMote::SwapMote::setTxInterval" ref="ac4ff2cae3958d5b61de7ae62cf9f4d8d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::setTxInterval </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>interval</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set periodic Tx interval. </p>
<p>Return true if ACK received from mote</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">interval,:</td><td>New Tx interval</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this command is confirmed from the mote. Return False otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a398c0a7161eb82b8a2db1ae4c692bd65"></a><!-- doxytag: member="swap::SwapMote::SwapMote::staRegister" ref="a398c0a7161eb82b8a2db1ae4c692bd65" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def swap::SwapMote::SwapMote::staRegister </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>regId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Send SWAP status packet about the current value of the register passed as argument. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">regId,:</td><td>Register ID </td></tr>
    <tr><td class="paramname">value,:</td><td>New value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/daniel/development/Aptana/pyswap/src/swap/SwapMote.py</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Fri Dec 9 2011 16:23:28 for pyswap by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
